<?php $categories = $this->requestAction('/Common/navigation');?>
<div class="h_container_navigation">
            <div class="main_width">
                <ul class="h_navigation">
                    <li>
                        <a href="<?php echo $this->Html->url('/home/index/');?>"><?php echo __('Home'); ?></a>
                    </li>
                    <?php if(isset($categories[0]['children'])): ?>
                        <?php foreach($categories[0]['children'] as $category):?>
                            <li>
                                <a href="<?php echo $this->Html->url('/categories/index/'.$category['Category']['category_id']);?>"><?php echo $category['category_language'][0]['name']?></a>
                                <?php if(isset($category['children']) && count($category['children']) > 0): ?>
                                    <div class="container_sub_navigation">
                                        
                                        <ul class="sub_navigation">
                                            <div class="row_navi"></div>
                                            <?php foreach($category['children'] as $item):?>
                                                <li><a href="<?php echo $this->Html->url('/categories/index/'.$item['Category']['category_id']);?>"><?php echo $item['category_language'][0]['name']?></a></li>
                                            <?php endforeach;?>
                                        </ul>
                                    </div>
                                    
                                <?php endif; ?>
                            </li>
                        <?php endforeach;?>
                    <?php endif; ?>
                    
                    <li>
                        <a href="<?php echo $this->Html->url('/home/contact/');?>"><?php echo __('Contact us'); ?></a>
                    </li>
                    <li  style="border-right:none;">
                        <a href="<?php echo $this->Html->url('/home/landlord/');?>"><?php echo __('LandLord'); ?></a>
                    </li>
                    <div class="clearBoth"></div>
                </ul>
            </div>
        </div>


    



